from django import forms

from .models import question, answer
from ckeditor.widgets import CKEditorWidget
from ckeditor_uploader.widgets import CKEditorUploadingWidget

class questionForm(forms.ModelForm):
    class Meta:
        model = question
        fields = ['titel', 'question']
        question = forms.CharField(widget=CKEditorWidget())
        widgets = {
            'content': CKEditorUploadingWidget(),
        }

class answerForm(forms.ModelForm):
    class Meta:
        model  =  answer
        fields  =  ['answer']
        widgets = {
            'content': CKEditorUploadingWidget(),
        }
        